zifu=str(input("输入字符"))
zimu=0
shuzi=0
kongge=0
qita=0
for i in zifu:
    if i.isalpha():
        zimu+=1
    elif i.isdigit():
        shuzi+=1
    elif i.isspace():
        kongge+=1
    else:
        qita+=1
print("字母=%d"%zimu)
print("数字=%d"%shuzi)
print("空格=%d"%kongge)
print("其他=%d"%qita)